//
//  GameRulesController.m
//  PlaneWar2
//
//  Created by HappyMilk 02 on 2017/4/7.
//  Copyright © 2017年 HappyMilk 02. All rights reserved.
//

#import "GameRulesController.h"
#import "PublicTool.h"
#import "GameViewController.h"

@interface GameRulesController ()

@property (weak, nonatomic) IBOutlet UIButton *btn_go;

@end

@implementation GameRulesController
- (IBAction)dismiss:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    _btn_go.layer.masksToBounds = YES;
    _btn_go.layer.cornerRadius = 10;
    _btn_go.layer.borderColor = HEXCOLOR(0x007AFF).CGColor;
    _btn_go.layer.borderWidth = 3;
    
}

- (IBAction)startGame:(UIButton *)sender {
    
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    GameViewController *vc = [sb instantiateViewControllerWithIdentifier:@"GameViewController"];
    vc.sceneType = self.type;
    vc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentViewController:vc animated:YES completion:nil];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
